package com.woniuxy.commons.service;

import com.woniuxy.commons.dto.LearnMapDetailDto;
import com.woniuxy.commons.dto.LearnMapDto;
import com.woniuxy.commons.dto.RouteDetailDto;
import com.woniuxy.commons.entity.LearnMap;
import com.woniuxy.commons.entity.PageBean;
import com.woniuxy.commons.entity.ResponseEntity;
import com.woniuxy.commons.entity.Route;
import com.woniuxy.commons.factory.RemoteExamServiceFactory;
import com.woniuxy.commons.factory.RemoteLearnMapServiceFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author 吴毛伟
 * @date:2020/7/30 20:24
 * @description:
 */
@FeignClient(name = "LEARNMAP", fallbackFactory = RemoteLearnMapServiceFactory.class)
public interface RemoteLearnMapService {
    @PostMapping("/findLearnMapsByPage")
    public ResponseEntity<PageBean<LearnMapDto>> findLearnMapsByPage(@RequestBody LearnMapDto learnMapDto);

    @PostMapping("/findLearnMapDetails")
    public ResponseEntity<List<LearnMapDetailDto>> findLearnMapDetailsByLmid(@RequestBody LearnMap learnMap);

    @PostMapping("/findRouteDetails")
    public ResponseEntity<List<RouteDetailDto>> findRouteDetailsByRouteId(@RequestBody Route route);
}
